import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneOffset;
import java.util.Date;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/1/7 15:18
 */

public class TimeDemo {
    public static void main(String[] args) {
        // 1511658000
        long time = new Date().getTime();
        LocalDateTime today = LocalDateTime.ofEpochSecond(time / 1000, 0, ZoneOffset.ofHours(8));
        System.out.println(LocalDateTime.of(today.toLocalDate().plusDays(1), LocalTime.ofSecondOfDay(0)).toEpochSecond(ZoneOffset.ofHours(8)));

    }
}

